﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcModel.Models;
using MvcModel02.Models;

namespace MvcModel02.Models
{
    public class MusicStoreDbInitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "贝多芬" });


            context.Genres.Add(new Genre { Name = "古典", Description = "古典音乐" });



            base.Seed(context);
        }


    }
}